﻿//按钮开启加载状态
function BtnLoading(btnid) {
    if ($("#" + btnid).find("i.layui-anim-loop").length != 1) {

        $("#" + btnid).append("<i class=\"layui-icon layui-anim layui-anim-rotate layui-anim-loop\" id=\"submitloading\" style=\"display:block;\">&#xe63d;</i> ");

    }
}
//按钮关闭加载状态
function BtnUnLoading(btnid) {

    if ($("#" + btnid).find("i.layui-anim-loop").length == 1) {

        $("#" + btnid).find("div.ripple-container").remove();
        $("#" + btnid).find("i.layui-anim-loop").remove();

    }
}
